package cn.xm.org.service.impl;

import cn.xm.basic.service.impl.BaseServiceImpl;
import cn.xm.org.domain.Employee;
import cn.xm.org.domain.SystemDictionaryType;
import cn.xm.org.mapper.SystemDictionaryDetailMapper;
import cn.xm.org.mapper.SystemDictionaryTypeMapper;
import cn.xm.org.service.EmployeeService;
import cn.xm.org.service.SystemDictionaryDetailService;
import cn.xm.org.service.SystemDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Dictionary;

@Service
public class SystemDictionaryTypeServiceImpl extends BaseServiceImpl<SystemDictionaryType> implements SystemDictionaryTypeService {

    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;
    @Autowired
    private SystemDictionaryTypeMapper systemDictionaryTypeMapper;
    @Override
    public void delete(Long id) {
        systemDictionaryDetailMapper.deleteByTypesId(id);
        systemDictionaryTypeMapper.delete(id);
    }
}
